const path = require('path');

module.exports = {
    devServer: {
        port: 1423
    },
    // 创建 import 或 require 的别名，来确保模块引入变得更简单(配置别名)
    chainWebpack: config => {
        config
        .resolve
        .alias
        .set('@styles', path.resolve(__dirname, 'src/stylesheets'))
        .set('@libs', path.resolve(__dirname, 'src/libs'))
        .set('@com', path.resolve(__dirname, 'src/components'))
        .set('@pages', path.resolve(__dirname, 'src/pages'))
    }
}
